-- GENERATED SPELL FOR [Enraging Ghoul] --


function spell0_27729(pUnit, Event) --@Unstoppable Enrage,Self--
pUnit:FullCastSpellOnTarget(52461,pUnit)
pUnit:RegisterEvent('Sorts_27729', 8275, 1)
end

function Sorts_27729(pUnit, Event)
local choix_sorts_27729 = math.random(0, 0)
if choix_sorts_27729 == 0 then
pUnit:RegisterEvent('spell0_27729', 1, 1)
end
end

function mob27729_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27729', math.random(1500, 3000), 1)
end

function mob27729_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27729_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27729_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27729, 1, 'mob27729_Action')
RegisterUnitEvent(27729, 2, 'mob27729_Leave')
RegisterUnitEvent(27729, 3, 'mob27729_Kill')
RegisterUnitEvent(27729, 4, 'mob27729_Die')
